package com.titan.demo.camel.developers.SpringRoute.services.impl;

import com.titan.demo.camel.developers.SpringRoute.domain.BodyDomain;
import com.titan.demo.camel.developers.SpringRoute.services.IAService;
import com.titan.demo.camel.developers.SpringRoute.services.Utils;


/**
 *
 *
 * @author Administrator
 *
 */
public class AService implements IAService {
    public void a01(BodyDomain body) throws Exception {
        Utils.out(AService.class, "a01");
        Utils.sleep(1000);
        body.append("a01");
        if(false) {
            throw new Exception("1111111");
        }
    }
    public void a02(BodyDomain body) throws Exception {
        Utils.out(AService.class, "a02");
        Utils.sleep(1000);
        body.append("a02");
    }
    public void a03(BodyDomain body) throws Exception {
        Utils.out(AService.class, "a03");
        Utils.sleep(1000);
        body.append("a03");
    }
}

